package com.gams.task;

import com.alibaba.fastjson.JSONObject;
import com.gams.common.HttpRequestUtils;
import com.gams.config.ConfigConstant;
import com.gams.websocket.client.WebsocketClient;
import com.gams.websocket.server.WebSocketServerHandler;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import zkteco.id100com.jni.id100sdk;

@Component
@Log4j
public class HeartJob
{
    @Autowired
    private WebsocketClient websocketClient;

    @Autowired
    private WebSocketServerHandler clientHandler;

    //添加读卡记录
    private static final String url = "http://" + ConfigConstant.ip + ":8083/ruoyi-socket/device-api/addCardInfo";

    @Scheduled(cron = "0/20 * * * * ?")
    public void settlementTask()
    {
        if (!WebsocketClient.isRun)
        {
            log.info("连接已断开，正在重连");
            websocketClient.reConnect();
            return;
        }
        WebsocketClient.client.send("{\"d\":\"" + ConfigConstant.deviceId + "\",\"c\":\"2\"}");
    }


    @Scheduled(cron = "* * * * * ?")
    public void ReadContent()
    {
        if (id100sdk.Authenticate() != 1)
        {
            return;
        }
        id100sdk.ReadContent(1);
        id100sdk.GetBmpPhotoExt();//读取身份证
        JSONObject param = new JSONObject();
        param.put("name", id100sdk.getName());
        param.put("sex", id100sdk.getSexCode());
        param.put("gender", id100sdk.getSex());
        param.put("nation", id100sdk.getNation());
        param.put("nationcode", id100sdk.getNationCode());
        param.put("cardId", id100sdk.getIDNum());
        param.put("certnumber", id100sdk.getIDNum());
        param.put("certaddress", id100sdk.getAddress());
        param.put("bornday", id100sdk.getBirthdate());
        param.put("certorg", id100sdk.getIssue());
        param.put("effdate", id100sdk.getEffectedDate());
        param.put("expdate", id100sdk.getExpireDate());
        param.put("deviceId", ConfigConstant.deviceId);
        param.put("identifypic", id100sdk.getFPDataBase64());
        param.put("cardtype", id100sdk.getCardType());
        String jsonParam = JSONObject.toJSONString(param);
        log.info("读取到身份证:" + id100sdk.getName());
        HttpRequestUtils.httpPost(url, jsonParam);

        //发送身份证号到前端
        clientHandler.sendIDcard(id100sdk.getIDNum());
    }

    public static void main(String[] args)
    {
        JSONObject param = new JSONObject();
        param.put("name", "胡志宏");
        param.put("sex", 1);
        param.put("nation", "汉");
        param.put("cardId", "43092219890205423X");
        param.put("certnumber", "43092219890205423X");
        param.put("certaddress", "湖南省桃江县鸬鹚渡镇学塘湾村郭家村村民组90号");
        param.put("bornday", "19890205");
        param.put("certorg", "桃江县公安局");
        param.put("effdate", "20160321");
        param.put("expdate", "20360321");
        param.put("deviceId", "Q0000001");
        param.put("gender", "男");
        param.put("identifyPic", "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAB+AGYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm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UYxcvuSuuvy/pkZfm0pr2eIvNxV/aJK9lpeSXxb9En6n6SUVl6HqY1rRdI1hYjCmq6bY6lHExy0cd9bRXUaPjIDqkqhwrOqtlVdwA7FZn0KaaTWzSa9Hqj/9k=");
        param.put("cardtype", 1);

        HttpRequestUtils.httpPost(url, param.toJSONString());
    }
}
